import { defineStore } from 'pinia'
import useMenuStore from './menu'

const useLayoutStore = defineStore('layout', {
  state: () => ({
    hideAside: false,
    pageTitle: '',
  }),
  getters: {
    showHideAsideBtn() {
      const menuStore = useMenuStore()
      return menuStore.menuTree.length > 0
    },
  },
})

export default useLayoutStore
